package com.eastfair.questionnaire.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.eastfair.core.base.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 答题结果
 * </p>
 *
 * @author yuwx
 * @since 2021-08-18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "AnswerResultDTO", description = "答题结果")
public class AnswerResultDTO extends Entity<Long> implements Serializable {

    private static final long serialVersionUID = 1L;
    public interface validateBase {}

    public interface validateGet{}

    public interface validateSave{}
    /**
     * 项目ID
     */
    @ApiModelProperty(value = "项目ID")
    private Long projectId;

    @ApiModelProperty(value = "")
    @TableField(value = "exhibition_id")
    @Excel(name = "")
    private Long exhibitionId;

    /**
     * 问题id
     */
    @ApiModelProperty(value = "问题id")
    @NotNull(groups = {AnswerResultDTO.validateSave.class}, message =  "问题id")
    private Long questionId;
    /**
     * 答案id
     */
    @ApiModelProperty(value = "答案id")
    @NotNull(groups = {AnswerResultDTO.validateSave.class}, message =  "答案id")
    private Long answerId;
    /**
     * 填空题输入结果
     */
    @ApiModelProperty(value = "填空题输入结果")
    @Size(max = 128, message = "填空题输入结果长度不能超过128")
    private String inputResult;
    /**
     * 实体类型
     */
    @ApiModelProperty(value = "实体类型")
    @Size(max = 32, message = "实体类型长度不能超过32")
    private String subjectType;
    /**
     * 实体id
     */
    @ApiModelProperty(value = "实体id")
    private Long subjectId;

    /**
     * 数据来源系统
     */
    @ApiModelProperty(value = "数据来源系统")
    @Size(max = 64, message = "数据来源系统长度不能超过64")
    private String sourceSystem;

}
